@import url('https://fonts.googleapis.com/css?family=Press+Start+2P&display=swap');

.body {
  background-color: #516dff;
  color: #fff;
  font-family: 'Press Start 2P', sans-serif;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  margin: 0;
  text-align: center;

  a {
    color: #fff;
  }

  h1 {
    line-height: 1.4;
  }

  .btn {
    border: 0;
    background-color: #fff;
    color: #516dff;
    padding: 15px 20px;
    font-family: inherit;
    cursor: pointer;
    outline: none;

    &:hover {
      opacity: .9;
    }
  }

  .screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100vw;
    transition: margin 0.5s ease-out;

    &.up {
      margin-top: -100vh;
    }

    .insects-list {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      list-style-type: none;
      padding: 0;

      li {
        margin: 10px;

        .choose-insect-btn {
          background-color: transparent;
          border: 2px solid #fff;
          color: #fff;
          cursor: pointer;
          font-family: inherit;
          width: 150px;
          height: 150px;

          &:hover {
            background-color: #fff;
            color: #516dff;
          }

          &:active {

            background-color: rgba(255, 255, 255, 0.7);
          }

          img {
            width: 100px;
            height: 100px;
            object-fit: contain;
          }
        }
      }
    }

    &.game-container {
      position: relative;

      .time,
      .score {
        position: absolute;
        top: 20px;
      }

      .time {
        left: 20px;
      }

      .score {
        right: 20px;
      }

      .message {
        line-height: 1.7;
        background-color: rgba(0, 0, 0, 0.5);
        width: 100%;
        padding: 20px;
        z-index: 100;
        text-align: center;
        position: absolute;
        top: 0;
        left: 50%;
        transform: translate(-50%, 150%);
        transition: transform 0.4s ease-in;
        opacity: 1;
      }
    }
  }



  .insect {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    position: absolute;
    transform: translate(-50%, -50%) scale(1);
    transition: transform 0.3s ease-in-out;

    &.caught {

      transform: translate(-50%, -50%) scale(0);
    }

    img {
      width: 100px;
      height: 100px;
    }
  }
}